<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:choose>
	<c:when test="${requestScope.map.flag=='alreadyFriend' }">
		<script>
			if(confirm("이미 친구인 회원입니다.\n친구목록으로 이동하시겠습니까?")){
				location.href="${initParam.root}messenger/auth_friendList.do";
			}else{
				location.href="${initParam.root}messenger/auth_findFriendView.do";
			}
		</script>
	</c:when>
	<c:when test="${requestScope.map.flag=='sameId' }">
		<script>
			alert("본인");
			location.href="${initParam.root}messenger/auth_findFriendView.do";
		</script>
	</c:when>
	<c:otherwise>
		<script>
			alert("친구추가완료");
			if(confirm("친구목록 페이지로 이동하겠습니까?")){
				location.href="${initParam.root}messenger/auth_friendList.do";
			}else{
				location.href="${initParam.root}messenger/auth_findFriendView.do";
			}
		</script>
	</c:otherwise>
</c:choose>
